#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>
#include <assert.h>

int My_strcmp(const char* pa, const char* pb)
{
	assert(pa && pb);
	while (*pa == *pb)
	{
		if (*pa == '\0')
		{
			return 0;
		}
		pa++;
		pb++;
	}
	return *pa - *pb;
}

int main()
{
	char str1[20] = "abcdef";
	char str2[20] = "abcdf";
	if (My_strcmp(str1, str2) > 0)
		printf(" > ");
	else if (My_strcmp(str1, str2) == 0)
		printf(" == ");
	else
		printf(" < ");
	return 0;
}